From: Florian Müllner Date: Sat, 9 Feb 2019 03:51:00 +0000 (+0100) Subject: ci: Check that pot file is generated correctly X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~888^2^2~88 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ad8690bb2e28cef63f480575f5de887f4b1e0d2e;p=gnome-shell.git ci: Check that pot file is generated correctly This is to guard against the now infamous xgettext bug[0]. [0] https://savannah.gnu.org/bugs/?50920#comment5 https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408 --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4a35606bb..d02f3eb0b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ stages: variables: JS_LOG: "js-report.txt" + POT_LOG: "pot-update.txt" .only_default: &only_default only: @@ -71,3 +72,19 @@ test: paths: - build/meson-logs/testlog.txt when: on_failure + +test-pot: + image: registry.gitlab.gnome.org/gnome/gnome-shell/master:v1 + stage: test + before_script: + - ninja -C mutter/build install + script: + # Check that pot files are generated correctly: + # https://savannah.gnu.org/bugs/?50920#comment5 + - ninja -C build gnome-shell-pot 2>&1 | awk ' + BEGIN { start=0; } + start==1 { print $0; } + /gnome-shell-pot/ { start=1; } + ' | tee $POT_LOG + - (! grep -q . $POT_LOG) + <<: *only_default